/**常驻路由 */
export const constantRoutes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/login",
    component: () => import("@/views/login/index.vue"),
    meta: { hidden: true },
  },
  {
    path: "/home",
    name: "Home",
    component: () => import("@/views/home/index.vue"),
  },
  {
    path: "/pos",
    name: "Pos",
    component: () => import("@/views/pos/index.vue"),
  },
  {
    path: "/:pathMatch(.*)*",
    component: () => import("@/views/error/404.vue"),
    meta: { hidden: true },
  },
  {
    path: "/403",
    component: () => import("@/views/error/403.vue"),
    meta: { hidden: true },
  },
];

export default constantRoutes;
